package mest.service.Modeling.Impl;

import mest.dao.Modeling.IcarFileDao;
import mest.entity.car_file;
import mest.service.Modeling.IcarFileService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description
 * @auther Machenike
 * @create 2019-11-15 23:11
 */
@Service
public class carFileServiceImpl implements IcarFileService {

    @Resource
    private IcarFileDao icfd;

    @Override
    public int insertCarFile(car_file ct) {
        try {
            return icfd.insertCarFile(ct);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return 0;
    }

    @Override
    public int selectCount() {
        return icfd.selectCount();
    }

    @Override
    public List<car_file> findCarFilePage(int index, int pageSize) {
        return icfd.findCarFilePage((index-1)*pageSize,pageSize);
    }
}
